import { createBrowserRouter } from "react-router-dom";

import Home from "../pages/home";
import Login from "../pages/login";
import Chat from "../pages/chat/index";
const router = createBrowserRouter([
  {
    path: "/",
    element: <Home />,
  },
  {
    path: "/login",
    element: <Login />,
  },
  {
    path: "/chat/:accessToken",
    element: <Chat />,
  }
])

export default router;